Skip to content

Fix initial PDF page count showing 1 of 0#505

Open
Rithish-2914 wants to merge 2 commits intoCodeChefVIT:stagingfrom
Rithish-2914:fix/pdf-viewer-page-count
Open

Fix initial PDF page count showing 1 of 0#505
Rithish-2914 wants to merge 2 commits intoCodeChefVIT:stagingfrom
Rithish-2914:fix/pdf-viewer-page-count

Conversation

@Rithish-2914
Copy link
Copy Markdown
Contributor

Changes made

  • Fixed initial PDF page count issue showing 1 of 0
  • Wait for totalPages before setting current page state
  • Improved loading state handling for page count display

Result

The PDF viewer now correctly displays:

  • Loading... while metadata loads
  • Correct page count after document initialization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant